package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.BusiDeptWorkhour;
import com.ruoyi.system.mapper.BusiDeptWorkhourMapper;
import com.ruoyi.system.service.BusiDeptWorkhourService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusiDeptWorkhourImpl implements BusiDeptWorkhourService {
    @Autowired
    BusiDeptWorkhourMapper busiDeptWorkhourMapper;

    @Override
    public int insert(BusiDeptWorkhour busiDeptWorkhour) {
        return busiDeptWorkhourMapper.insert(busiDeptWorkhour);
    }

    @Override
    public List<BusiDeptWorkhour> showAll() {
        return busiDeptWorkhourMapper.showAll();
    }

    @Override
    public List<BusiDeptWorkhour> showNow(String month) {
        return busiDeptWorkhourMapper.showNow(month);
    }

    @Override
    public int update(BusiDeptWorkhour busiDeptWorkhour) {
        return busiDeptWorkhourMapper.updateById(busiDeptWorkhour);
    }
}
